package com.hu.video.service.impl;

import com.hu.video.entity.VideoBlacklist;
import com.hu.video.mapper.VideoBlacklistMapper;
import com.hu.video.service.IVideoBlacklistService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class VideoBlacklistServiceImpl implements IVideoBlacklistService {
    @Autowired
    private VideoBlacklistMapper mapper;

    @Override
    public List<VideoBlacklist> getByVideoId(Long videoId) {
        return mapper.selectByVideoId(videoId);
    }

    @Override
    public void addBlacklist(VideoBlacklist blacklist) {
        mapper.insert(blacklist);
    }

    @Override
    public void removeBlacklist(VideoBlacklist blacklist) {
        mapper.delete(blacklist);
    }
} 